<template>
	<view id="app_details">
		<view class="app_name">
			<text>{{name}}</text>
			<text>{{nametow}}</text>
		</view>
		<view class="app_kp">
			<uni-card title="" :isFull="true" sub-title="" extra="">
				<view class="app_details">
					<view class="app_course">
						<text>{{English}}</text>
					</view>
					<view class="app_language">
						<text>{{language}}</text>
						<text class="app_money iconfont icon-qian">{{money}}</text>
					</view>
				</view>

				<view class="app_numd">
					<text>课程总额</text>
					<text>{{course}}</text>
				</view>
				<view class="app_numd">
					<text>优惠券</text>
					<text>{{sale}}</text>
				</view>
				<view class="app_numd">
					<text>积分抵扣</text>
					<text>{{integral}}</text>
				</view>
				<view class="app_numd">
					<text>实付</text>
					<text class="iconfont icon-qian">{{paid}}</text>
				</view>
			</uni-card>
		</view>
		<uni-card :isFull="true" class="uni-carde">
			<view class="app_num">
				<text>订单编号</text>
				<view class="app_num">
					<text>{{number}}</text>
					<text class="app_fz">复制</text>
				</view>
			</view>
			<view class="app_num">
				<text>支付方式</text>
				<text>{{pay}}</text>
			</view>
			<view class="app_num">
				<text>下单时间</text>
				<text>{{date}}</text>
			</view>
		</uni-card>
	</view>
</template>

<script>
	import {
		ref
	} from 'vue'

	export default {
		setup() {
			let name = ref('订单关闭');
			let nametow = ref('超时未支付订单关闭');
			let number = ref('12157774555');
			let pay = ref('微信支付');
			let date = ref('2017-10-15 10:15')
			let English = ref('幼儿英语入门')
			let language = ref('幼儿英语入门课程');
			let money = ref('2999.00/10课时');
			let course = ref(2399.0);
			let sale = ref(-100.0)
			let integral = ref(-10.0);
			let paid = ref(2199.00)
			return {
				name,
				nametow,
				number,
				pay,
				date,
				English,
				language,
				money,
				course,
				sale,
				integral,
				paid
			}
		}
	}
</script>

<style lang="less">
	@import url("../../static/iconfont-J/iconfont.css");

	#app_details {
		padding: 20rpx;

		.app_name {
			height: 300rpx;
			background: #6670ff;
			line-height: 80rpx;
			border-radius: 20rpx;


			text {

				display: flex;
				flex-wrap: wrap;
				padding: 20rpx;
				justify-content: space-between;
				font-size: 32rpx;
				color: #fff;


			}
		}

		.uni-carde {
			.app_num {
				display: flex;
				justify-content: space-between;
				margin: 10rpx 0;


				.app_fz {
					color: red;
					margin-left: 5px
				}
			}
		}

		.app_kp {
			margin: 20rpx 0;

			.app_course {
				width: 190rpx;
				height: 130rpx;
				background-color: #cc66ff;
				text-align: center;
				line-height: 130rpx;
				border-radius: 20rpx;

				text {
					color: #fff;
				}
			}

			.app_details {
				display: flex;
				border-bottom: 1px solid #ccc;
				padding-bottom: 20rpx;

				.app_money {
					color: #f2ba3a;
					font-weight: 600;
				}

				.app_language text {
					display: block;

					margin: 10rpx 20rpx 0;
				}
			}

			.app_numd {
				display: flex;
				justify-content: space-between;
				padding: 10rpx 0;
			}
		}

	}
</style>
